import Vue from 'vue'
import App from './App.vue'
import router from './router'
import './router/permission'
import store from './store'
import './plugins/element.js'
import './assets/css/reset.css'
import './assets/css/iconfont.css'
import api from './api/index'
Vue.prototype.$api =api;
Vue.config.productionTip = false

//引入语言
import i18n from './lang/index.js'
//引入持久化
import './utils/localStorage.js' 
//导入插件
import TreeTable from 'vue-table-with-tree-grid'
//注册tree组件
Vue.component('tree-table',TreeTable)
//引入可视化插件
import * as echarts from 'echarts'
Vue.prototype.$echarts = echarts;
new Vue({
  router,//路由
  store, //仓库
  i18n,//国际化i18n
  render: h => h(App)
}).$mount('#app')
